export const SEARCH_DATA = [
  {
    key: 'settleOrderMainCode',
    title: '主结算单号',
    type: 'input',
  },
  {
    key: 'type',
    title: '结算类型',
    type: 'select',
    attr: {
      clearable: true,
    },
    options: [{ label: '手术结算', value: '1' }],
  },
  {
    key: 'customerName',
    title: '客户名称',
    type: 'input',
  },
  {
    key: 'settleOrderSubCode',
    title: '结算单号',
    type: 'input',
  },
  {
    key: 'supplierName',
    title: '供应商',
    type: 'input',
  },
  {
    key: 'settlementAt', // 在一起的日期起始时间
    title: '结算日期',
    type: 'time',
    fieldname: ['settlementAtBegin', 'settlementAtEnd'],
    attr: {
      class: 'daterange',
      type: 'daterange',
      style: 'width:260px',
      'start-placeholder': '结算开始日期',
      'end-placeholder': '结算结束日期',
      'default-time': ['00:00:00', '23:59:59'],
    },
  },
  // {
  //   key: 'billingStatus',
  //   title: '发票状态',
  //   type: 'select',
  //   options: [
  //     { label: '待开票', value: '1' },
  //     { label: '已开票', value: '2' },
  //   ],
  // },
  {
    key: 'invoiceNumber',
    title: '发票号码',
    type: 'input',
  },
  {
    key: 'createAt', // 在一起的日期起始时间
    title: '创建日期',
    type: 'time',
    fieldname: ['createAtBegin', 'createAtEnd'],
    attr: {
      class: 'daterange',
      type: 'daterange',
      style: 'width:260px',
      'start-placeholder': '创建开始日期',
      'end-placeholder': '创建结束日期',
      'default-time': ['00:00:00', '23:59:59'],
    },
  },
  {
    key: 'admissionNumber',
    title: '住院登记号',
    type: 'input',
  },
];
export const TAB_ARR = [
  { lab: '全部', val: 0, badge: '' },
  { lab: '待开票', val: 1, badge: '' },
  { lab: '开票中', val: 4, badge: '' },
  { lab: '已开票', val: 2, badge: '' },
  { lab: '已取消', val: 3, badge: '' },
  { lab: '已作废', val: 5, badge: '' },
];
export const COLUMNS_TABLE = [
  {
    width: '40',
    fixed: 'left',
    type: 'selection',
  },
  {
    type: 'index',
    label: '序号',
    width: 56,
  },
  {
    prop: 'settleOrderMainCode',
    label: '主结算单号',
    width: 200,
  },
  {
    prop: 'supplierNum',
    label: '供应商数量',
    width: 100,
  },
  {
    prop: 'typeDesc',
    label: '结算类型',
    width: 150,
  },
  {
    prop: 'settlementDateStr',
    label: '结算日期',
    width: 150,
  },
  {
    prop: 'customerName',
    label: '客户名称',
    width: 150,
  },
  {
    prop: 'pcompanyName',
    label: '配送商',
    width: 150,
  },
  {
    prop: 'admissionNumber',
    label: '住院登记号',
    width: 150,
  },
  {
    prop: 'amountIncludingTaxStr',
    label: '含税金额（元）',
    width: 150,
  },
  {
    prop: 'applyAmountStr',
    label: '申请金额（元）',
    width: 150,
  },
  {
    prop: 'billingAmountStr',
    label: '开票金额（元）',
    width: 150,
  },
  {
    prop: 'taxAmountStr',
    label: '总税额（元）',
    width: 150,
  },
  // {
  //   prop: 'consumptionStatusDesc',
  //   label: '消耗状态',
  //   width: 150,
  // },
  {
    prop: 'billingStatusDesc',
    label: '开票状态',
    width: 150,
  },
  {
    prop: 'invoiceNumber',
    label: '发票号码',
    width: 150,
  },
  {
    prop: 'createdAtStr',
    label: '创建时间',
    width: 150,
  },
  {
    prop: 'action',
    label: '操作',
    width: 200,
    fixed: 'right',
  },
];
export const INVOICE_TYPE = [
  { label: '普通发票', value: 1 },
  { label: '专用发票', value: 2 },
  { label: '电子发票', value: 3 },
];
